package com.wigem.fa.entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wigem.framework.common.util.common.GuidUtils;
import java.util.Date;

/**
 * 申请附件对象 fa_apply_file
 *
 * @author ls
 * @date 2024-11-01
 */

@Data
@ApiModel
@TableName("fa_apply_file")
public class FaApplyFileEntity{

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id", name = "id")
    @TableId
    private String id;

    /**
     * 申请id
     */
    @ApiModelProperty(value = "申请id", name = "applyId")
    @TableField(value = "apply_id")
    private String applyId;

    /**
     * 政策类型
     */
    @ApiModelProperty(value = "政策类型", name = "policyType")
    @TableField(value = "policy_type")
    private String policyType;

    /**
     * 文件序号
     */
    @ApiModelProperty(value = "文件序号", name = "fileNo")
    @TableField(value = "file_no")
    private String fileNo;

    /**
     * 文件id
     */
    @ApiModelProperty(value = "文件id", name = "fileId")
    @TableField(value = "file_id")
    private String fileId;


    /**
     * 阶段id
     */
    @ApiModelProperty(value = "阶段id", name = "stageId")
    @TableField(value = "stage_id")
    private String stageId;
    public void create(){
        this.id =GuidUtils.generate();
    }
    public  void modify(String keyValue){
        this.id =keyValue;
    }

}
